/*******************************************************************************
 * Copyright(c) 2023 Levetop Semiconductor Co.,Led. All rights reserved.
 * @file     sincos_table.h
 * @author   UartTFT Application Team
 * @version  V0.0.1
 * @date     2023-01-01
 * @brief
 ********************************************************************************/

#ifndef _SINCOS_TABLE_H
#define _SINCOS_TABLE_H

#include <stdint.h>

#define MULTIPLE 1000000
int32_t rangeAngle(int32_t angle, int32_t min, int32_t max);
int32_t fast_sin(int32_t angle);
int32_t fast_cos(int32_t angle);
uint32_t fast_tan(int32_t angle);

#define MAGNIFICATION	10000
uint32_t FastTan(uint8_t angle);
uint16_t FastAtan(int32_t x_circle, int32_t y_circle,int32_t x_delta,int32_t y_delta);

int64_t LtPow(uint32_t d, uint32_t n);




#endif /* _SINCOS_TABLE_H */
